package com.redare.dev.smart.generator.sdk;

import com.redare.dev.smart.generator.sdk.pojo.OnlFormField;
import com.redare.dev.smart.generator.sdk.pojo.form.OnlFormFieldForm;
import com.redare.devframework.common.pojo.CommonResult;
import com.redare.devframework.common.pojo.Page;

import java.util.List;

/**
 * sdk
 *
 * @author yangqiangyu
 * @date 2021-08-28 23:03:12
 */
public interface OnlFormFieldSdk {


    /**
     * 代码生成
     */
    CommonResult<Boolean> codeGenerate(OnlFormFieldForm.Add form);

    /**
     * 新增
     */
    CommonResult<Boolean> addOnlFormField(OnlFormFieldForm.Add form);

    /**
     * 编辑
     */
    CommonResult<Boolean> editOnlFormField(OnlFormFieldForm.Edit form);

    /**
     * 删除
     */
    CommonResult<Boolean> deleteOnlFormField(OnlFormFieldForm.Del form);

    /**
     * 查询
     */
    CommonResult<List<OnlFormField>> findOnlFormFieldList(OnlFormFieldForm.Search form);

    /**
     * 分页查询
     */
    CommonResult<List<OnlFormField>> findOnlFormFieldList(OnlFormFieldForm.Search form, int curPage, int pageSize);

    /**
     * 分页查询
     */
    CommonResult<Page<OnlFormField>> findOnlFormFieldPage(OnlFormFieldForm.Search form, int curPage, int pageSize);

    /**
     * 获取
     */
    CommonResult<OnlFormField> getOnlFormField(OnlFormFieldForm.Get form);


}

